﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class RequestCloseLoanModel: CloseLoanModel
    { }

    public class CloseLoanModel
    {
        public List<CloseLoanItem> CloseLoanItems { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        public string SelectedBranchCode { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }

        public IEnumerable<SelectListItem> CloseLoanRemarks { get; set; }

    }

    public class CloseLoanItem
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Receivable")]
        public decimal Receivable { get; set; }

        [Display(Name = "Total Payment")]
        public decimal TotalPayment { get; set; }

        [Display(Name = "Outstanding Balance")]
        public decimal OutstandingBalance { get; set; }

        [Display(Name = "Loan Status")]
        public string LoanStatus { get; set; }

        public bool IsSelected { get; set; }

        public int RemarkID { get; set; }


    }

}